gdk: Add GdkDragCancelReason enum as argument to GdkDragContext::cancel
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 15 Feb 2016 16:02:14 +0000 (17:02 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 15 Feb 2016 17:35:51 +0000 (18:35 +0100)
commitaad3135e4c30c977c80ba39a65f28623aa4c4592
tree74598cd689912cca989f9dfa5999a77a16c39812
parent1ee3df5161e243a54a1254ff203282ed678f70ae
gdk: Add GdkDragCancelReason enum as argument to GdkDragContext::cancel

We should conform to a minimal set of reasons for the gtk side to emit
a better GtkDragResult than GTK_DRAG_RESULT_ERROR. This fixes the notebook
tab DnD feature, where we rely on GTK_DRAG_RESULT_NO_TARGET.

In the wayland side, unfortunately we can't honor either NO_TARGET nor
USER_CANCELLED, we don't know of the latter, so we could return false
positives on the former.

https://bugzilla.gnome.org/show_bug.cgi?id=761954
docs/reference/gdk/gdk3-sections.txt
gdk/gdkdnd.c
gdk/gdkdnd.h
gdk/gdkdndprivate.h
gdk/wayland/gdkdnd-wayland.c
gdk/wayland/gdkselection-wayland.c
gdk/x11/gdkdnd-x11.c
gtk/gtkdnd.c